$OpenBSD: patch-src_fetch_allocinefetcher_cpp,v 1.1 2015/05/02 15:30:31 zhuk Exp $
Be sure to download image data in fetchers before setting field
(upstream 2510d692).
--- src/fetch/allocinefetcher.cpp.orig	Sun Feb 15 22:23:56 2015
+++ src/fetch/allocinefetcher.cpp	Sat May  2 18:10:19 2015
@@ -25,6 +25,7 @@
 #include <config.h>
 #include "allocinefetcher.h"
 #include "../collections/videocollection.h"
+#include "../images/imagefactory.h"
 #include "../entry.h"
 #include "../gui/guiproxy.h"
 #include "../tellico_utils.h"
@@ -219,6 +220,17 @@ Tellico::Data::EntryPtr AbstractAllocineFetcher::fetch
   }
   populateEntry(entry, result);
 #endif
+
+  // image might still be a URL
+  const QString image_id = entry->field(QLatin1String("cover"));
+  if(image_id.contains(QLatin1Char('/'))) {
+    const QString id = ImageFactory::addImage(image_id, true /* quiet */);
+    if(id.isEmpty()) {
+      message(i18n("The cover image could not be loaded."), MessageHandler::Warning);
+    }
+    // empty image ID is ok
+    entry->setField(QLatin1String("cover"), id);
+  }
 
   // don't want to include id
   entry->collection()->removeField(QLatin1String("allocine-code"));
